<?php


namespace app\common\model;


use app\common\traites\TraitModel;
use think\Model;

class GameName extends Model
{
    use TraitModel;
    public $name = 'dianji_game_type';
    //游戏列表

    public static function page_list($map,$limit, $page)
    {
        return self::alias('a')
            ->where($map)
//            ->join('dianji_lu_zhu b', 'a.game_type = b.id', 'left')
//            ->field('a.*,b.result_pai')
            ->order('id desc')
            ->paginate(['list_rows' => $limit, 'page' => $page], false);
    }
}